package com.erp.erp_dao.Account;

import com.erp.erp_entitys.Account.AccountEntity;
import com.erp.erp_entitys.Account.AccountExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface IAccountDAO {
    long countByExample(AccountExample example);

    int deleteByExample(AccountExample example);

    int deleteByPrimaryKey(String code);

    int insert(AccountEntity record);

    int insertSelective(AccountEntity record);

    List<AccountEntity> selectByExample(AccountExample example);

    /**
     * 获取账号信息
     * @param account 账号查询实体
     * @return 账号信息
     */
    List<AccountEntity> getAccountList(AccountEntity account);

    AccountEntity selectByPrimaryKey(String code);

    int updateByExampleSelective(@Param("record") AccountEntity record, @Param("example") AccountExample example);

    int updateByExample(@Param("record") AccountEntity record, @Param("example") AccountExample example);

    int updateByPrimaryKeySelective(AccountEntity record);

    int updateByPrimaryKey(AccountEntity record);
}